/**
 * @Author: wilmerxu
 * @Description: 弹窗js
 * @Date: 2020/7/28 12:22
 */
import Vue from 'vue';
import AppComponent from './Popup.vue';
import {Button, Card, Input, Form, FormItem} from 'element-ui';
import ExtMessage from '../libs/ext-message';
const extMessage = new ExtMessage();
import ajax from '../libs/ajax';
import storage from '../libs/storage';
import storageDefine from '../libs/storage-define';

Vue.use(Card);
Vue.use(Button);
Vue.use(Input);
Vue.use(Form);
Vue.use(FormItem);

Vue.component('app-component', AppComponent);

Vue.prototype.$contentMessage = extMessage.contentMessage;
Vue.prototype.$sendContentMessage = extMessage.sendContentMessage;
Vue.prototype.$post = ajax.$post;
Vue.prototype.$storage = storage;
Vue.prototype.STORAGE_DEFINE = storageDefine;

const _vue = new Vue({
  el: '#app',
  render: createElement => createElement(AppComponent),
});
console.log(_vue);
